Skip to content

Conversation

@fvalette
Copy link

@fvalette fvalette commented Aug 28, 2023

Meson buildsystem introduction.
Compare to the orig makefile, meson is building a static library for libdrbg and self test binary is built is with_test option is set to true (see meson.options).

One can build and run self test with th following:

meson setup -Dstrict-nist-hashes=true -Dwith_test=true -Dwith_test_entropy_source=true build
meson compile -C build
meson test -C build

TODO:

  • options description
  • src / include / test layout
  • Add include directory in meson declared dependency (for libhash and libdrbg)
  • generate configuration header (instead of WITH_HASH_CONF_OVERRIDE boilerplate)
  • generate a .pc file ?

A lot of Makefile options are built-in w/ meson (sanitizer, werror trigger, etc.),
thus there are not in meson.options files.
One can checks available options (built-in and project specific) with the following:

 meson configure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant